package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.StudentAccount;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface StudentAccountMapper extends BaseMapper<StudentAccount> {
    StudentAccount findByUsernameAndPassword(@Param("student_username") String username, @Param("student_password") String password);
    StudentAccount findByStudentId(@Param("student_id") Long studentId);
    StudentAccount findById(@Param("student_account_id")Long account);
    void updateUserID(@Param("student_id") Long studentId, @Param("student_account_id") Long studentAccountId);
}
